package com.combetter.changxing.db.entity;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.databinding.BaseObservable;

/**
 * 类名  添加但未上传成功的数据
 * 作者  tlfx: Sean.guo
 * 日期  2019/4/4 15:09
 */
@Entity(tableName = "upload_facility_table")//已匹配设备
public class UpLoadFacility extends BaseObservable {
//        map.put("identifierId", identifierId);
//        map.put("name", name);
//        map.put("uid", MyApp.getInstance().getUserInfo().getUid());
//        map.put("type", "1");
//        if (mid != 0) {
//        map.put("mid", mid);
//    }
//        map.put("status", status);


    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "_facilityName") // 名称
    private String facilityName;    //名称

    @ColumnInfo(name = "_facilityAddress") // 设备连接地址
    private String facilityAddress;   //设备连接地址

    @ColumnInfo(name = "_mid") //
    private int mid;   //
    @ColumnInfo(name = "_uid") //
    private String uid;   //

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFacilityName() {
        return facilityName;
    }

    public void setFacilityName(String facilityName) {
        this.facilityName = facilityName;
    }

    public String getFacilityAddress() {
        return facilityAddress;
    }

    public void setFacilityAddress(String facilityAddress) {
        this.facilityAddress = facilityAddress;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }
}
